import { Column, Entity } from 'typeorm';
import { BaseEntity } from '@app/common';

@Entity('system_dict')
export class DictEntity extends BaseEntity {
  @Column({ type: 'varchar', name: 'name' })
  name: string;

  @Column({ type: 'varchar', name: 'code' })
  code: string;

  @Column({ type: 'varchar', name: 'describe' })
  describe: string;

  @Column({ name: 'sort', type: 'int' })
  sort: number;

  @Column({ type: 'tinyint', name: 'status' })
  status: number;
}
